package fei.yuzhi.com.loveflowers.http;

import java.util.List;
import java.util.Map;

import fei.yuzhi.com.loveflowers.bean.ClassifyAllBean;
import fei.yuzhi.com.loveflowers.bean.ClassifyItemBean;
import fei.yuzhi.com.loveflowers.bean.ProductBean;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;
import java.util.Map;

import fei.yuzhi.com.loveflowers.bean.evaluatebean.EvaluateBean;
import fei.yuzhi.com.loveflowers.bean.firstpageautobean.FirstAutoBean;
import fei.yuzhi.com.loveflowers.bean.firstpagedetailbean.FirstPageBaseDetailBean;
import fei.yuzhi.com.loveflowers.bean.searchbean.SearchBean;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.QueryMap;

/**
 * Created by Administrator on 2016/10/7.
 */
public interface RetrofitService {
    //mobile/index.php?act=brand&op=list&curpage=1&page=20&version=4.3.0&client=android
    @GET("mobile/index.php?act=brand&op=list&curpage=1&page=20&version=4.3.0&client=android")
    Call<ResponseBody> getClassifyAll();

    @GET("mobile/index.php?")
    Call<ClassifyItemBean> getClassifyItem(@QueryMap Map<String, String> map);

    @GET("mobile/index.php?")
    Call<ProductBean> getProductBean(@QueryMap Map<String, String> map);
    //mobile/index.php?act=index&op=index&version=4.3.0&client=android
    @GET("mobile/index.php?act=index&op=index&version=4.3.0&client=android")
    Call<ResponseBody> getImageView();
    //http://www.iginwa.com/mobile/index.php?act=goods&op=goods_detail&goods_id=103392&key=&version=4.3.0&client=android
    @GET("mobile/index.php?")
    Call<FirstPageBaseDetailBean> getPageDetailBean(@QueryMap Map<String,String> map);
    //mobile/index.php?act=index&op=special&version=4.3.0&special_id=362&type=html%20HTTP/1.1
    @GET("mobile/index.php?")
    Call<FirstAutoBean> getFirstAutoBean(@QueryMap Map<String,String> map);
    //mobile/index.php?act=goods&op=goods_list&curpage=1&page=10&keyword=%E6%B4%97%E8%A1%A3%E6%B6%B2&version=4.3.0&client=android
    @GET("mobile/index.php?")
    Call<SearchBean> getSearchBean(@QueryMap Map<String,String> map);
    //http://www.iginwa.com/mobile/index.php?act=goods&op=comments&page=10&curpage=1&goods_id=103392&type=1&version=4.3.0&client=android
    @GET("mobile/index.php?")
    Call<EvaluateBean> getEvaluateBean(@QueryMap Map<String,String> map);

}




